package com.icoolkj.mall.order.feign;

import com.icoolkj.mall.common.Result;
import com.icoolkj.mall.order.feign.dto.AccountRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author icoolkj
 * @version 1.0
 * @description
 * @createDate 2025/01/17 18:30
 */
@FeignClient(name = "icoolkj-mall-account", path = "/api/account")
public interface AccountServiceFeignClient {

    @PostMapping("/reduce-balance")
    Result<?> reduceBalance(@RequestBody AccountRequest accountRequest);

}
